const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const stockSchema = new Schema({
  code: {
    type: String
  },
  secucode: {
    type: String,
    unique: true
  },
  type: String,
  name: {
    type: String,
    required: true
  },
  business: String,
  description: String,
  eval: String,
  reportDate: String,
});

module.exports = mongoose.model('Stock', stockSchema);
